package com.example.factory.model.db;

import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;

import java.sql.Date;
import java.time.LocalDateTime;

/**
 * @author:0.2℃
 * @date： 2022-01-01 18:22
 * @version:
 * @Description ：
 */
@Table(database = AppDatabase.class)
public class User extends BaseModel {
    private static final int SEX_MAN = 1;
    private static final int SEX_WOMEN = 2;

    @PrimaryKey
    public String id;
    @Column
    public String name;
    @Column
    public String phone;
    @Column
    public String portrait;
    @Column
    public String desc;
    @Column
    public int sex = 0;

    // 對某人的備註信息
    @Column
    public String alias;

    // 用户关注人的数量
    @Column
    public int follows;

    // 用户粉丝数量
    @Column
    public int following;

    // 我与当前User的关系转态，是否已经关注了这个人
    @Column
    public boolean isFollow;

    // 用户信息最后的更新时间
    @Column
    public Date modifyAt;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public int getFollows() {
        return follows;
    }

    public void setFollows(int follows) {
        this.follows = follows;
    }

    public int getFollowing() {
        return following;
    }

    public void setFollowing(int following) {
        this.following = following;
    }

    public boolean isFollow() {
        return isFollow;
    }

    public void setFollow(boolean follow) {
        isFollow = follow;
    }

    public Date getModifyAt() {
        return modifyAt;
    }

    public void setModifyAt(Date modifyAt) {
        this.modifyAt = modifyAt;
    }
}
